//
//  HMMeTableViewController.swift
//  WeiBo
//
//  Created by Apple on 2017/5/30.
//  Copyright © 2017年 KY. All rights reserved.
//

import UIKit

class HMMeTableViewController: HMVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if isLogin {
            addPushButton()
        } else {
            visitorView?.updateVisitorViewInfo(imageName: "visitordiscover_image_profile", message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
        }
        
    }
    
    //  添加push按钮
    fileprivate func addPushButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    
    
    //  MARK:   --push按钮点击事件
    @objc private func pushAction() {
    
        let testVC = HMTestViewController()
        self.navigationController?.pushViewController(testVC, animated: true)
        
    }
    
   

}
